//
//  WKWalletManagerTableViewCell.m
//  ourToken
//
//  Created by wakeup on 2018/5/31.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import "WKWalletManagerTableViewCell.h"
#import "WKBaseHeader.h"

@implementation WKWalletManagerTableViewCell

- (void)setWalletModel:(WKWalletModel *)walletModel {
    _walletModel = walletModel;
    
    self.coinType.text = [NSString stringWithFormat:@"%@",walletModel.name];
    self.address.text = walletModel.address;
    self.balanceCoin.text = walletModel.balanceCoin;
    
    if ([walletModel.coinType isEqualToString:@"BTC"]) {
        self.coinImageView.image = [UIImage imageNamed:@"b"];
    }
    else if ([walletModel.coinType isEqualToString:@"ETH"]) {
        self.coinImageView.image = [UIImage imageNamed:@"e"];
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backView.layer.cornerRadius = 10;
    self.backView.layer.masksToBounds = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
